﻿using System;

namespace DynamicVm
{
    public class UndefinedPropertyException : Exception
    {
        public string PropertyName { get; private set; }

        public UndefinedPropertyException(string propertyName)
            :base(string.Format("Undefined property name: {0}", propertyName))
        {
            PropertyName = propertyName;
        }
    }
}
